package d0326;

import java.util.Collections;
import java.util.List;
import java.util.Vector;

public class TestCollections {
    public static void main(String[] args) {
        List<Integer> list = new Vector<>();
        list.add(22);
        list.add(11);
        list.add(99);
        Collections.sort(list);
        list.forEach(i -> System.out.println(i));
//        for(Integer i : list) {
//            System.out.println(i);
//        }
    }
}